﻿using UnityEngine;
using System.Collections;

public class CameraFollow : MonoBehaviour {

	public Transform m_Target;
	private GameObject m_Camera;
	private float m_Delay = 0.1f;
	// Use this for initialization
	void Start () 
	{
	
	}
	
	// Update is called once per frame
	void LateUpdate () 
	{
		Vector3 cameraDestination = new Vector3(m_Target.position.x, m_Target.position.y, transform.position.z);		
		transform.position = Vector3.Lerp(transform.position, cameraDestination, m_Delay);
	}
}
